function x=add_ststdp_to_circuits(Circuit)

x=Circuit;

for i=1:size(x,2),
    Circ=x{end,i};
    if size(Circ,2)==17
        Circ{1,end+1}='ststdp_type';
        Circ{1,end+1}='ststdp_modulation';
        Circ{1,end+1}='ststdp_max';
        for j=2:size(Circ,1),
            Circ{j,18}=0;
            Circ{j,19}=0;
            Circ{j,20}=0;
            
        end
        disp( [ 'added ststdp to circuit #' num2str(i) ] );
    else
        disp( [ ' unable to add ststdp to circuit #' num2str(i) ] );
    end
    x{end,i}=Circ;
end
